package com.zxq.demo.core.controller;

import com.zxq.demo.core.helper.ExecuteHelper;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zw
 * @description
 * @email 2408003640@qq.com
 * @date 2025/6/14 23:36
 */
@RestController
@RequestMapping("/executeJob")
public class JobInfoController {

    @Resource
    private ExecuteHelper executeHelper;

    @GetMapping("/executeJobById")
    public String executeJobById(@RequestParam(value = "jobId") Long jobId) {
        executeHelper.execute(jobId);
        return "Success";
    }
}
